package com.john.cloud.consumer.fallback;

import com.john.cloud.consumer.remote.HelloRemote;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: JohnCoding
 * @Description:
 * @date: 2020/5/6 13:57
 */
@Component
public class MySpringBootFallBack implements HelloRemote {

    @Override
    public String hello(@RequestParam String name) {
        return "hello" +name+", this messge send failed ";
    }

}
